package org.jeecg.modules.htxincailiao.account.domain.bo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.jeecg.common.util.SmartVerificationUtil;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
public class HTResetPasswordBO {
    private boolean isEdit;

    /**手机号*/
    @NotEmpty(message = "手机号不能为空")
    @Pattern(regexp = SmartVerificationUtil.PHONE_REGEXP, message = "手机号格式不正确")
    @ApiModelProperty(value = "手机号")
    private String phoneNumber;

    @ApiModelProperty(value = "原密码")
    private String oldPassword;

    /**密码*/
    @NotEmpty(message = "密码不能为空")
    @Length(min = 8, message = "密码最少为8位字符")
    @ApiModelProperty(value = "密码")
    private String password;

    /**密码盐*/
    @NotEmpty(message = "密码盐不能为空")
    @Length(min = 32,max = 32, message = "密码盐必须为32位字符")
    @ApiModelProperty(value = "密码盐")
    private String salt;
}
